﻿using System;

namespace Aeon.Emulator.Instructions.FPU
{
    internal static class F2xm1
    {
        [Opcode("D9F0", OperandSize = 16 | 32, AddressSize = 16 | 32)]
        public static void Compute2xMinus1(VirtualMachine vm)
        {
            double st0 = vm.Processor.FPU.ST0;
            vm.Processor.FPU.ST0 = Math.Pow(2.0, st0) - 1.0;
        }
    }
}
